#include <REGX52.H>
unsigned int dataLED[]={0xfe,0xfd,0xfb,0xf7,0xef,0xdf,0xbf,0x7f};
unsigned char num =0;
void delay(unsigned char timer){
	unsigned char k=0,j=0;
	for(k=0;k<timer;k++){
		for(j=0;j<120;j++);
	}
}
void main(){
	while(1){
		for(num=0;num<8;num++){
			 P2 = dataLED[num];
			 delay(200);
		}	
	}
}